﻿<UserControl x:Class="SilverlightMarqueeText.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:m="clr-namespace:SilverlightMarqueeText"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
            <StackPanel Orientation="Vertical" >
                <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Text="LeftToRight Marquee"></TextBlock>
                <m:MarqueeText MarqueeBackground="Red" FontSize="25" MarqueeTimeInSeconds="10" Foreground="Green" Margin="10" MarqueeHeight="200" MarqueeWidth="200"  MarqueeContent="Bangladesh"      MarqueeType="LeftToRight"></m:MarqueeText>
            </StackPanel>
            <StackPanel Orientation="Vertical" >
                <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Text="RightToLeft Marquee"></TextBlock>
                <m:MarqueeText MarqueeBackground="Red" FontSize="25" MarqueeTimeInSeconds="10"  Foreground="Green" Margin="10" MarqueeContent="Bangladesh" MarqueeHeight="200" MarqueeWidth="200" MarqueeType="RightToLeft"></m:MarqueeText>
            </StackPanel>
        </StackPanel>
      <StackPanel Orientation="Horizontal">
        <StackPanel Orientation="Vertical" >
                <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Text="TopToBottom Marquee"></TextBlock>
                <m:MarqueeText MarqueeBackground="Red" FontSize="25" MarqueeTimeInSeconds="10"  Foreground="Green" Margin="10" MarqueeContent="Bangladesh" MarqueeHeight="200" MarqueeWidth="200" MarqueeType="TopToBottom"></m:MarqueeText>
            </StackPanel>
            <StackPanel Orientation="Vertical" >
                <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Text="BottomToTop Marquee"></TextBlock>
                <m:MarqueeText MarqueeBackground="Red" FontSize="25" MarqueeTimeInSeconds="10"  Foreground="Green" Margin="10" MarqueeContent="Bangladesh" MarqueeHeight="200" MarqueeWidth="200" MarqueeType="BottomToTop"></m:MarqueeText>
            </StackPanel>
        </StackPanel>
            </StackPanel>
    </Grid>
</UserControl>
